package com.twu.biblioteca.User;

public class User {

    private final String account;
    private String name="";
    private String email="";
    private String phone="";
    private  boolean isLibrian;
    private String password;

    public User(String account){
        this.account = account;
    }

    public User(String account, Boolean isLibrian, String password){
        this.account = account;
        this.isLibrian = isLibrian;
        this.password = password;
    }

    public String getAccount() {
        return account;
    }

    public String getName() {
        return name;
    }


    public String getEmail() {
        return email;
    }

    public String getPhone() {
        return phone;
    }

    public String getUserInfo() {
        return "Name:" + name + "\n" + "Email:" + email + "\n" + "Phone number:" + phone + "\n";
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isLibriran(){
        return isLibrian;
    }
}
